<?php

class ecTemplateViewsLayout{

  public static function getTemplateModule($params= array())
  {
    return dirname(__FILE__).'/../../../apps/'.$params['applicationName'].'/modules/'.$params['moduleName'].'/views/'.$params['templateAction'];
  }

  public static function loadPartial($partial, $params=array())
  {
    if(secure::includeVerif(dirname(__FILE__).'/../../../apps/'.$params['applicationName'].'/views/_'.$partial.'.php'))
      return (dirname(__FILE__).'/../../../apps/'.$params['applicationName'].'/views/_'.$partial.'.php');
  
    return false;
  }

}

?>
